package com.consumer.order.controller;


import com.consumer.order.service.orderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



@RestController
@RequestMapping("/orders")
public class OrderController {
    @Autowired
    private orderService service;

    @RequestMapping("/")
    public String name()
    {
        return "订单服务！！！";
    }

    @RequestMapping("/find")
    public String goodsFind()
    {
        return service.findAllgoods().toString();
    }

}
